/***********************************************************************\
*                                                                       *
* This file was created by Component Internal Interface Engine software *
*  Copyright(c) 2000-2006 by Krzysztof Pozniak (pozniak@ise.pw.edu.pl)  *
*                           All Rights Reserved.                        *
*                                                                       *
\***********************************************************************/

package tb6s_kx1;

import cii_lib.*;

public class CCII_I2C_MASTER {

  public CCII_COMPONENT _CII_I2C_MASTER;

  public static class CDATA_SIZE extends CCII_ACCESS_ICON {
    private int[] _Val=new int[1];
    public CDATA_SIZE(String name, int size) {
      super(name, size); Set( _Val);
      _Val[0] = 8;
    }
  }
  public static final CDATA_SIZE DATA_SIZE=new CDATA_SIZE("DATA_SIZE",1);

  private CCII_ACCESS_IPAR _IPAR_CLOCK_kHz;
  private CCII_ACCESS_IPAR _IPAR_BIT_RATE_kHz;
  private CCII_ACCESS_IPAR _IPAR_BUF_LEN;
  private CCII_ACCESS_IPAR _IPAR_BUF_WIDTH;
  private CCII_ACCESS_IR _BITS_INIT;
  private CCII_ACCESS_IR _BITS_START;
  private CCII_ACCESS_RO _BITS_STOP;
  private CCII_ACCESS_RO _BITS_ERROR;
  private CCII_ACCESS_RO _WORD_BUF_LEN;
  private CCII_ACCESS_RW _WORD_BUF_DATA;
  public CCII_I2C_MASTER(CCII_TABLE_INDEX itab, int cidx, CCII_INTERFACE interf, CCII_COMPONENT parent) {
    _CII_I2C_MASTER=new CCII_COMPONENT(itab,cidx,parent);
    _IPAR_CLOCK_kHz=null;
    _IPAR_BIT_RATE_kHz=null;
    _IPAR_BUF_LEN=null;
    _IPAR_BUF_WIDTH=null;
    _BITS_INIT=null;
    _BITS_START=null;
    _BITS_STOP=null;
    _BITS_ERROR=null;
    _WORD_BUF_LEN=null;
    _WORD_BUF_DATA=null;
    if(_CII_I2C_MASTER.Number()==0) return;
    _IPAR_CLOCK_kHz = new CCII_ACCESS_IPAR(itab,_CII_I2C_MASTER);
    _IPAR_BIT_RATE_kHz = new CCII_ACCESS_IPAR(itab,_CII_I2C_MASTER);
    _IPAR_BUF_LEN = new CCII_ACCESS_IPAR(itab,_CII_I2C_MASTER);
    _IPAR_BUF_WIDTH = new CCII_ACCESS_IPAR(itab,_CII_I2C_MASTER);
    _BITS_INIT = new CCII_ACCESS_IR(itab,interf,_CII_I2C_MASTER);
    _BITS_START = new CCII_ACCESS_IR(itab,interf,_CII_I2C_MASTER);
    _BITS_STOP = new CCII_ACCESS_RO(itab,interf,_CII_I2C_MASTER);
    _BITS_ERROR = new CCII_ACCESS_RO(itab,interf,_CII_I2C_MASTER);
    _WORD_BUF_LEN = new CCII_ACCESS_RO(itab,interf,_CII_I2C_MASTER);
    _WORD_BUF_DATA = new CCII_ACCESS_RW(itab,interf,_CII_I2C_MASTER);
  }
  public CCII_COMPONENT CII_I2C_MASTER() {return(_CII_I2C_MASTER.Number()==0?null:_CII_I2C_MASTER);};
  public CCII_ACCESS_IPAR IPAR_CLOCK_kHz() {return(_IPAR_CLOCK_kHz);};
  public CCII_ACCESS_IPAR IPAR_BIT_RATE_kHz() {return(_IPAR_BIT_RATE_kHz);};
  public CCII_ACCESS_IPAR IPAR_BUF_LEN() {return(_IPAR_BUF_LEN);};
  public CCII_ACCESS_IPAR IPAR_BUF_WIDTH() {return(_IPAR_BUF_WIDTH);};
  public CCII_ACCESS_IR BITS_INIT() {return(_BITS_INIT);};
  public CCII_ACCESS_IR BITS_START() {return(_BITS_START);};
  public CCII_ACCESS_RO BITS_STOP() {return(_BITS_STOP);};
  public CCII_ACCESS_RO BITS_ERROR() {return(_BITS_ERROR);};
  public CCII_ACCESS_RO WORD_BUF_LEN() {return(_WORD_BUF_LEN);};
  public CCII_ACCESS_RW WORD_BUF_DATA() {return(_WORD_BUF_DATA);};
}
